﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QunYing.Common;
using System.Drawing;
using System.ServiceModel;

namespace QunYing.Common
{
    /// <summary>
    /// 商品图片操作类
    /// </summary>
   [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class ImageOperatorGoods :ImageOperatorBase
    {
        protected override string GetFolderByImageType(string imageType)
        {
            return GlobalInfo.ImageWebPath;
        }
    }

    /// <summary>
    /// 会员图片操作类
    /// </summary>
    [ServiceBehavior]
    public class ImageOperatorVipInfo :ImageOperatorBase
    {
        #region IImageOperator 成员

        protected override string GetFolderByImageType(string imageType)
        {
            return GlobalInfo.FolderVipAddr+imageType+@"\";
           // return GlobalInfo.ImageForlderBasePath + imageType + @"\";
        }
        #endregion
    }

    /// <summary>
    /// 经销商图片操作类
    /// </summary>
    [ServiceBehavior]
    public class ImageOperatorDealerInfo :ImageOperatorBase
    {
        protected override string GetFolderByImageType(string imageType)
        {
             return GlobalInfo.FolderDealer+imageType+@"\";
        }

       
    }


}
